
public class Point {
	
	public Double left;
	public Double right;
	public Double getLeft() {
		return left;
	}
	public void setLeft(Double left) {
		this.left = left;
	}
	public Double getRight() {
		return right;
	}
	public void setRight(Double right) {
		this.right = right;
	}
	
	public Point(String points)
	{
		
		String[] breaKstring;
		if(points.contains(";"))
		{
			
			breaKstring = points.split(";");
		}
		else
		{
			breaKstring = points.split(",");
		}
		
		
		this.left = Double.parseDouble(breaKstring[0]);
		this.right = Double.parseDouble(breaKstring[1]);
		
	}
	@Override
	public String toString() {
		return "Point [left=" + left + ", right=" + right + "]";
	}
	public String toDatabase() {
		// TODO Auto-generated method stub
		return left+";"+right;
	}

}
